package com.itheima.health.dao;

import com.itheima.health.pojo.CheckGroupItem;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CheckGroupItemMapper extends Mapper<CheckGroupItem> {
    /**
     * @Author: 位帅帅
     * @Date: 17:11 2021/1/5
     * @Params: [id]
     * @RerurnType: java.util.List<java.lang.Integer>
     * @Description: 根据检查组id查询所有检查项id
    */
    List<Integer> findCheckItemIdsByCheckGroupId(@Param("id") Integer id);

    /**
     * @Author: 位帅帅
     * @Date: 17:50 2021/1/5
     * @Params: [id]
     * @RerurnType: void
     * @Description: 删除指定检查组id
    */
    void deleteCheckGroupItemByCheckGroupId(@Param("id") Integer id);
}
